package com.xyht.sca_s.student_manage_system.modules.welcomeNewStudent.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 助学贷款申请表
 * </p>
 *
 * @author XYHT
 * @since 2024-03-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sms_wns_student_loan_apply")
@ApiModel(value = "SmsWnsStudentLoanApply对象", description = "助学贷款申请表")
public class SmsWnsStudentLoanApply implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "助学贷款id")
    private String id;

    @ApiModelProperty(value = "用户id")
    private String userId;

    @ApiModelProperty(value = "姓名")
    private String stuName;

    @ApiModelProperty(value = "身份证号")
    private String stuIdCard;

    @ApiModelProperty(value = "贷款银行")
    private String loanBank;

    @ApiModelProperty(value = "贷款金额")
    private BigDecimal loanAmount;

    @ApiModelProperty(value = "附件")
    private String annex;

    @ApiModelProperty(value = "申请人")
    private String applyUserName;

    @ApiModelProperty(value = "审批状态  0：待审批  1：通过   2：驳回   3：撤销")
    private Integer allowStatus;

    @ApiModelProperty(value = "结束时间")
    private Date endTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "是否删除：0：未删除 1：已删除")
    @TableLogic
    private Integer isDeleted;


}
